//
//  CWSportTracking.m
//  China_Walk
//
//  Created by HYY on 16/10/21.
//  Copyright © 2016年 qishuolei. All rights reserved.
//

#import "CWSportTracking.h"

@implementation CWSportTracking

-(instancetype)initWithType:(CWSportType)type{
    
    self = [super init];
    if (self) {
        _sportType = type;
    }
    return self;
}

-(UIImage *)sportImage{
    
    UIImage *image;
    switch (_sportType) {
        case CWSportTypeRun:
            image = [UIImage imageNamed:@"map_annotation_run"];
            break;
        case CWSportTypeWalk:
            image = [UIImage imageNamed:@"map_annotation_walk"];
            break;
        case CWSportTypeBike:
            image = [UIImage imageNamed:@"map_annotation_bike"];
            break;
    }
    
    return image;
}


@end
